import request from '@/utils/request'




export function qualityLogRemove(query) {
  return request({
    url: `/contract-quality/deleteById?id=${query}`,
    method: 'post',
  })
}

export function qualityLogSub(query) {
  return request({
    url: `/contract-quality/updateContractQuality`,
    method: 'post',
    data: query
  })
}

// // 反馈记录数据
export function getQualityLogDetail(query) {
  return request({
    url: `/contract-quality/selectContractQualityDetail?id=${query}`,
    method: 'post',
    data: {
      
    }
  })
}

// 反馈记录数据 列表页查询
export function listFeedBackLog(query) {
  return request({
    url: '/contract-quality/list',
    method: 'post',
    data: query
  })
}

// 质量详情数据
export function getQualityList(query) {
  return request({
    url: `/contract-quality/ContractProgressNodeListQualityNoComplete?contractProgressId=${query}`,
    method: 'post',
    data: {
      
    }
  })
}

// 质量详情数据
export function getFeedbackInfo(query) {
  return request({
    url: `/contract-progress-log/contractProgress?contractProgressId=${query}`,
    method: 'post',
    data: {

    }
  })
}




// 厂区字典查询
export function getOrgList(query) {
  return request({
    url: `/sys-dict/list?type=org`,
    method: 'post',
    data: {
    }
  })
}

// 合同列表查询
export function getProgressList(query) {
  return request({
    url: `/contract-progress-log/contractProgressList`,
    method: 'post',
    data: {
      id:query.id,
      projectId:query.projectId,

    }
  })
}


// 合同列表查询
export function getContractInfoList(query) {
  return request({
    url: `/contract-progress-log/contractInfoList`,
    method: 'post',
    data: {
      projectId:query
    }
  })
}

export function listSelct(query) {
  return request({
    url: '/pigfarm-info/listSelct',
    method: 'post',
    data: {
      deptId:query
    }
  })
}

// 列表页查询
export function delPigFarmInfo(query) {
  return request({
    url: `/contract-progress-log/delete/${query}`,
    method: 'get',
    // data: query
  })
}

// 列表页查询
export function listPigFarmInfo(query) {
  return request({
    url: '/contract-progress-log/list',
    method: 'post',
    data: query
  })
}
// 片区
export function getTreeselect() {
  return request({
    url: '/auth/dept/treeselect',
    method: 'get',
  })
}

export function updateFarmInfo(query) {
  return request({
    url: '/contract-quality/addContractQuality',
    method: 'post',
    data: query
  })
}


// 新增档案
export function addFarmInfo(query) {
  return request({
    url: '/contract-progress-log/add',
    method: 'post',
    data: query
  })
}
// 查看详情
export function getDetailsById(query) {
  return request({
    url: `/contract-progress-log/getById/${query}`,
    method: 'get',
    // data: query
  })
}
